package com.bootlever.framework.rmi.bean;

import com.bootlever.framework.common.utils.StringUtils;

import java.io.Serializable;

public class RmiInfo implements Serializable{

    private static final long serialVersionUID = -7232498190779560839L;
    private String id;
    private String name;
    private String address;
    private Integer port;
    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean isValidate() {
        if (StringUtils.isBlank(name)||StringUtils.isBlank(address)||port==null) {
            return false;
        }
        return true;
    }
}
